@import 'sulu-admin-bundle/containers/Application/colors.scss';

$searchFieldBackgroundColor: $white;
$searchFieldIndexButtonColor: $white;
$searchFieldIndexButtonBackgroundColor: $shakespeare;
$searchFieldBorderRadius: 3px;
$searchFieldBorderColor: $silver;
$searchFieldHintColor: $gray;

.search-field {
    display: flex;
    width: 100%;
    max-width: 820px;
    height: 40px;
    background: $searchFieldBackgroundColor;
    border-radius: 0 $searchFieldBorderRadius $searchFieldBorderRadius 0;
}

.search-resource-button {
    display: flex;
    background: $searchFieldIndexButtonBackgroundColor;
    color: $searchFieldIndexButtonColor;
    border: none;
    border-radius: $searchFieldBorderRadius 0 0 $searchFieldBorderRadius;
    height: 100%;
    width: 140px;
    font-weight: bold;
    text-align: left;
    padding: 0 10px;
    cursor: pointer;
    align-items: center;
}

.search-resource {
    width: 100%;
}

.input-container,
.input {
    border-radius: 0 $searchFieldBorderRadius $searchFieldBorderRadius 0;
}

.input-container {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid $searchFieldBorderColor;
    border-left: none;
}

.input {
    height: 100%;
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 18px;
    line-height: 20px;
    font-weight: bold;
}

.clear-icon,
.search-icon {
    margin-right: 10px;
}

.search-icon {
    font-size: 20px;
}

.clear-icon {
    font-size: 10px;
    width: 20px;
    height: 20px;
    border: 1px solid;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hint {
    color: $searchFieldHintColor;
    margin: 20px 0 60px;
}
